//
//  DownListViewController.h
//  PGXQ
//
//  Created by Iori on 5/27/16.
//  Copyright © 2016 sunny. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "IoriBaseTableViewController.h"

@protocol DropDownListDelegate <NSObject>

-(void)dropDown_selected:(NSString*)val text:(NSString*)title;

@end

@interface DownListViewController : IoriBaseTableViewController

@property (weak, nonatomic) id<DropDownListDelegate> dropDownCallbackDelegate;
@property (nonatomic, copy) NSString *sectionTitle;
@property (strong, nonatomic) NSArray<NSDictionary<NSString*, NSString*> *> *dropDownDataSource;

- (IBAction)btnOK_click:(UIButton *)sender;

@end


@protocol DatePickerDelegate <NSObject>
@optional
-(void)datePickerChanged:(NSDate*)date;
-(NSString*)getDateFormatString;
-(UIDatePickerMode)getDatePickerMode;
-(NSDate*)getCurrentDate;
@end

@interface DatePickerController : UIViewController

@property (assign, nonatomic) NSDateFormatterStyle dateFormatterStyle;
@property (weak, nonatomic) id<DatePickerDelegate> datePickerDelegate;

@property (weak, nonatomic) IBOutlet UILabel *labTitle;
@property (weak, nonatomic) IBOutlet UIDatePicker *datePicker;
- (IBAction)datePicker_changed:(id)sender;
- (IBAction)btnOK_click:(UIButton *)sender;

@end